package pages;

import org.openqa.selenium.By;
import utils.Log4Test;
import utils.WebDriverWrapper;

/**
 * Created by Vadim on 6/10/14.
 */
public class ShoesPage extends BasePage {
    private static final String URL_SHOES = "http://rozetka.com.ua/shoes/c458425/";
    private static final By pageShoes = By.xpath("//*[@id='shoes']/div/a");

    public ShoesPage(WebDriverWrapper driver) {
        super(driver, URL_SHOES);
    }

    public void open() {
        driver.findElement(pageShoes).click();
        if (driver.getCurrentUrl().equals(URL_SHOES)) {
            Log4Test.info("Page shoes is opened");
        } else{
            Log4Test.error("Page shoes isn't opened");
        }
    }

}
